/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2021-10-07
 * Time: 21:26
 */
public class DisplayOperation implements Ioperation {
    @Override
    public void work(BookList bookList) {
        if (bookList.getSize() == 0) {
            System.out.println("书库无书");
        }
        for (int i = 0; i < bookList.getSize(); i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}


